﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Heroius.Extension;
using Heroius.Extension.WPF;

namespace PicRowScaler
{
    public class ScalerPlan: ObservableEntity
    {
        [PropertyPanel(Label = "总比率")]
        public double TotalScale { get; set; } = 0.8;

        [PropertyPanel(Label = "图片文件")]
        public ObservableCollection<ScalerPlanImageItem> Files { get; set; } = new ObservableCollection<ScalerPlanImageItem>();
    }

    public class ScalerPlanImageItem: ObservableEntity
    {
        [PropertyPanel(Label = "图片"), DataType("File"), PropertyPanelFileAttribute(Filter = "所有支持的图片格式|*.jpg;*.bmp;*.png;*.jpeg")]
        public string File { get; set; }
    }
}
